﻿using System.Collections.Generic;
using Wicresoft.RDW.Interface;
using Wicresoft.RDW.Model;

namespace Wicresoft.RDW.Presentation
{
    public class FeedbackAnswerPresent : BasePresent<FeedbackAnswer, IFeedbackAnswer>
    {
        public static List<FeedbackAnswer> GetByQuestionId(int questionID)
        {
            return present.GetList(q => q.QuestionId == questionID);
        }

        public static List<FeedbackAnswer> GetByAnswerId(int answerID)
        {
            return present.GetList(q => q.AnswerId == answerID);
        }

        public static List<FeedbackAnswer> GetByFeedbackId(int feedbackID)
        {
            return present.GetList(q => q.FeedbackId == feedbackID);
        }
    }
}